$(function() {
	$('#tt').tree({
		onClick: function(node){
			var txt = node.text;
			$("#main_container").attr("src",'index.do');
			
		}
	});
})

function getSelected() {
	var node = $('#tt').tree('getSelected');
	if (node) {
		var s = node.text;
		if (node.attributes) {
			s += "," + node.attributes.p1 + "," + node.attributes.p2;
		}
		alert(s);
	}
}